/*

Author   : chaos

FileName : add_arr2.cpp

Date     : 08/08/17 00:01:35

*/
#include <iostream>
using namespace std;

int main(void)
{
    int array[4] = {0,1,2,3};

    cout << "element\t\t|address\t| value" << endl;
    cout << "-------------------------------------" << endl;

    for (int i = 0; i < 4; i++) {
        cout << "array[" << i << "]\t|" << &array[i] <<"\t|" << array[i] << endl;

        cout << endl << "array:" << array << endl;
    }
    return 0;
}
